package com.sxx.mall.product.vo;

import jdk.internal.dynalink.linker.LinkerServices;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Auther: sunxx
 * @Date: 2024/7/30 - 07 - 30 - 18:44
 * @Description: com.sxx.mall.product.vo
 * @version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catalog2VO {

    private String catalog1Id; //二级分类对应的一级父类的编号
    private List<Catalog3VO> catalog3List; //二级分类对应的三级分类的数据
    private String id;  //二级分类的编号
    private String name;    //二级分类对应的类别名称

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catalog3VO{

        private String catalog2Id; //三级分类对应的二级分类编号
        private String id;
        private String name;
    }

}
